/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 修复body样式，确保浮动按钮正常工作 */
body {
  margin: 0;
  display: block !important; /* 覆盖index.css中的flex布局 */
  place-items: unset !important;
  min-width: 320px;
  min-height: 100vh;
  background-color: #ffffff;
}

#root {
  width: 100%;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 加载状态样式 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f8fafc;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container p {
  color: #6b7280;
  font-size: 16px;
}

/* 主应用容器样式 */
.app-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 原有的应用头部样式已移至 Navbar 组件 */

/* 主内容区域样式 */
.app-main {
  padding: 96px 24px 32px 24px; /* 顶部增加间距以适应固定导航栏 */
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}

.welcome-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.welcome-content h2 {
  color: #1a202c;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.welcome-content > p {
  color: #718096;
  font-size: 16px;
  margin-bottom: 32px;
}

.user-details {
  background: #f7fafc;
  border-radius: 8px;
  padding: 24px;
  border-left: 4px solid #667eea;
}

.user-details h3 {
  color: #2d3748;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.user-details p {
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.user-details p:last-child {
  margin-bottom: 0;
}

.user-details strong {
  color: #2d3748;
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app-main {
    padding: 72px 16px 16px 16px; /* 移动端调整顶部间距 */
  }
  
  .welcome-content {
    padding: 20px;
  }
  
  .welcome-content h2 {
    font-size: 24px;
  }
  
  .user-details {
    padding: 16px;
  }
}
